/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session_01;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;

/**
 *
 * @author Fede
 */
public class HelloSlick extends BasicGame{

    private AppGameContainer contenedor;
    private int x,y;
    
    public HelloSlick(String title) throws SlickException {
        super(title);
        contenedor = new AppGameContainer(this);
        contenedor.setDisplayMode(850, 480,false);
        x =0;
        y=0;
    }
public void iniciar() throws SlickException{
    contenedor.start();
    
}
    @Override
    public void init(GameContainer gc) throws SlickException {
       
    }

    @Override
    public void update(GameContainer gc, int i) throws SlickException {
      
        
       
    }

    @Override
    public void render(GameContainer gc, Graphics grphcs) throws SlickException {

        grphcs.drawString("Hellow word gammers",x, y);
        grphcs.drawRect(100,200, 200, 200);
        
    }
    
 
}
